<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>LiftSimu: /Users/alrik/Documents/workspace/LiftSimu/src/UpdateRequest.java Quellcode</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="up.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">LiftSimu
   
   </div>
   <div id="projectbrief">die Simulation einer Liftanlage</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Erzeugt von Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Suchen');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Hauptseite</span></a></li>
      <li><a href="annotated.html"><span>Klassen</span></a></li>
      <li class="current"><a href="files.html"><span>Dateien</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Suchen" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Auflistung&#160;der&#160;Dateien</span></a></li>
    </ul>
  </div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Alle</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Klassen</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Dateien</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funktionen</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variablen</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">/Users/alrik/Documents/workspace/LiftSimu/src/UpdateRequest.java</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_update_request_8java.html">gehe zur Dokumentation dieser Datei</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="keyword">import</span> java.awt.Color;
<a name="l00002"></a>00002 <span class="keyword">import</span> java.lang.Runnable;
<a name="l00003"></a>00003 
<a name="l00004"></a>00004 <span class="keyword">import</span> javax.swing.JOptionPane;
<a name="l00005"></a>00005 
<a name="l00026"></a><a class="code" href="class_update_request.html">00026</a> <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_update_request.html" title="bereitet einen neune Thread für GUI-Update vor">UpdateRequest</a> <span class="keyword">implements</span> Runnable {
<a name="l00027"></a><a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">00027</a>    <span class="keyword">private</span> <a class="code" href="class_lift.html" title="die Klasse der Liftsteuerung">Lift</a> <a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>;
<a name="l00028"></a><a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">00028</a>    <span class="keyword">private</span> <a class="code" href="class_simu_frame.html" title="Das Hauptfenster, mit der Simulation.">SimuFrame</a> <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>;
<a name="l00029"></a>00029    
<a name="l00030"></a><a class="code" href="class_update_request.html#aa81f38c621a39eeabe3f887682648067">00030</a>    <span class="keyword">public</span> <a class="code" href="class_update_request.html#aa81f38c621a39eeabe3f887682648067">UpdateRequest</a>(<a class="code" href="class_lift.html" title="die Klasse der Liftsteuerung">Lift</a> <a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>, <a class="code" href="class_simu_frame.html" title="Das Hauptfenster, mit der Simulation.">SimuFrame</a> <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>){
<a name="l00031"></a>00031       this.viewHouse=<a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>;
<a name="l00032"></a>00032       this.lift=<a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>;
<a name="l00033"></a>00033    } 
<a name="l00034"></a>00034 
<a name="l00035"></a><a class="code" href="class_update_request.html#ae9524312e17fe60b94c462761ad0cb13">00035</a>    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="class_update_request.html#ae9524312e17fe60b94c462761ad0cb13">run</a>() {
<a name="l00036"></a>00036       <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#a2c5839785a01f4d8af20e5548e95dd53">shaft</a>.<a class="code" href="class_j_shaft_panel.html#adb7e3c0157d8cbd2e68a25eb3882002d" title="Zeichnet die Tür in einer bestimmten Etage mit einem Bestimmten Grad an &quot;Öffnung&quot;.">drawDoors</a>(<a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#affdb5569975011b559998105148b7e06" title="gibt den Zustand der Türen zurück">getdoorcond</a>(), <a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#aa5edc87881e8ee3f661a42cdb2a6a7cd" title="gibt die aktuelle Etage zurück, in der sich die Kabine befindet.">getetage</a>());
<a name="l00037"></a>00037       <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#a2c5839785a01f4d8af20e5548e95dd53">shaft</a>.<a class="code" href="class_j_shaft_panel.html#addf167511ca16e36dbbe362302aa4e01" title="Zeichnet den Lift in einer Bestimmten Etage mit einem Versatz.">drawLift</a>(<a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#a455d593390ac620a27dc4cd3794c5451" title="gibt den Versatz der Kabine zurück">getBewegung</a>(), <a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#aa5edc87881e8ee3f661a42cdb2a6a7cd" title="gibt die aktuelle Etage zurück, in der sich die Kabine befindet.">getetage</a>());
<a name="l00038"></a>00038       <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#ab0d9d28ce138d439270d6a98dc13f6c0">display</a>.<a class="code" href="class_j_display.html#a5d4421c0b3f0c1f32d05429dcf281d2f" title="Diese Methode zeigt im Display eine bestimmte Etage an.">setEtage</a>(<a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#aa5edc87881e8ee3f661a42cdb2a6a7cd" title="gibt die aktuelle Etage zurück, in der sich die Kabine befindet.">getetage</a>());
<a name="l00039"></a>00039       <span class="keywordflow">if</span>(<a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#a9afe9ec0c8de171aab43962528c3ac84" title="gibt an, ob die Kabine sich bewegt">ismov</a>() &amp;&amp; <a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#af2e5850f5d0e57f4c191737cab1ca43a" title="gibt die (letzte) Fahrtrichtung zurück">getdriveup</a>()){ 
<a name="l00040"></a>00040          <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#ab0d9d28ce138d439270d6a98dc13f6c0">display</a>.<a class="code" href="class_j_display.html#a20e7498277954fc5c024c56a3b777ef1" title="Diese Methode schaltet im Display den Pfeil nach oben an.">showuparrow</a>();
<a name="l00041"></a>00041       }<span class="keywordflow">else</span> <span class="keywordflow">if</span>(<a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#a9afe9ec0c8de171aab43962528c3ac84" title="gibt an, ob die Kabine sich bewegt">ismov</a>() &amp;&amp; !<a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#af2e5850f5d0e57f4c191737cab1ca43a" title="gibt die (letzte) Fahrtrichtung zurück">getdriveup</a>()){
<a name="l00042"></a>00042          <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#ab0d9d28ce138d439270d6a98dc13f6c0">display</a>.<a class="code" href="class_j_display.html#a5dad7267c8c18ecb1bb5c32b15ab897a" title="Diese Methode schaltet im Display den Pfeil unten an.">showdownarrow</a>();
<a name="l00043"></a>00043       }<span class="keywordflow">else</span> <span class="keywordflow">if</span>(!<a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#a9afe9ec0c8de171aab43962528c3ac84" title="gibt an, ob die Kabine sich bewegt">ismov</a>())
<a name="l00044"></a>00044          <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#ab0d9d28ce138d439270d6a98dc13f6c0">display</a>.<a class="code" href="class_j_display.html#aaabb3ff015351b0589021af7d2a22063" title="Diese Methode schaltet im Display den Pfeil aus.">hidearrows</a>();
<a name="l00045"></a>00045       <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#a98d2003f4c9e4c15a67dd4551a157d9d">liftpanel</a>.<a class="code" href="class_j_lift_panel.html#aa1a1af9d116c063118b4c6d59d22a167">cabineDisplay</a>.<a class="code" href="class_j_display.html#a5d4421c0b3f0c1f32d05429dcf281d2f" title="Diese Methode zeigt im Display eine bestimmte Etage an.">setEtage</a>(<a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#aa5edc87881e8ee3f661a42cdb2a6a7cd" title="gibt die aktuelle Etage zurück, in der sich die Kabine befindet.">getetage</a>());
<a name="l00046"></a>00046       <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#a3547f449bf7889bd7d442f906215ca3e">generalpanel</a>.<a class="code" href="class_j_simu_general_panel.html#a10173980a66f51bf54daa53d2be9063a" title="Die Methode zum Setzen der Fahrgastanzahl.">setPassengers</a>(<a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#abb9a1d776ddfc735d70e2c278dc3cea9" title="gibt die Anzahl aller Personen, die sich im Fahrstuhl befinden zurück">getAllPeople</a>());
<a name="l00047"></a>00047       <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#a2c5839785a01f4d8af20e5548e95dd53">shaft</a>.<a class="code" href="class_j_shaft_panel.html#a52fde6403def7032b219ffde0ab9efd4" title="Über diese Methode wird die Zahl der Personen festgelegt, die im Fahrstuhl dargestellt werden...">setPersonen</a>(<a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#abb9a1d776ddfc735d70e2c278dc3cea9" title="gibt die Anzahl aller Personen, die sich im Fahrstuhl befinden zurück">getAllPeople</a>());
<a name="l00048"></a>00048       
<a name="l00049"></a>00049       <span class="comment">//wenn das lift Objekt eine zahl ungleich 0 zurück gibt, so ist wird ein Dialog angezeigt, der anzeigt, wieviele Personen wieder aussteigen</span>
<a name="l00050"></a>00050       <span class="keywordtype">int</span> overload=<a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#af93614bf6409a29bb3f97d1ab5709460" title="holt die Anzahl der Personen, die zu viel sind">getshowOverloadwithPeople</a>();
<a name="l00051"></a>00051       <span class="keywordflow">if</span>(overload!=0){
<a name="l00052"></a>00052          <span class="keywordflow">if</span> (overload!=1)  
<a name="l00053"></a>00053             JOptionPane.showMessageDialog( <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>, <span class="stringliteral">&quot;Es steigen &quot;</span> + overload + <span class="stringliteral">&quot; Personen aus.&quot;</span> ,<span class="stringliteral">&quot;Überlast&quot;</span>, 2, null);
<a name="l00054"></a>00054          <span class="keywordflow">else</span>
<a name="l00055"></a>00055             JOptionPane.showMessageDialog( <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>, <span class="stringliteral">&quot;Es steigt eine Person aus.&quot;</span> ,<span class="stringliteral">&quot;Überlast&quot;</span>, 2, null);
<a name="l00056"></a>00056          <a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#ad21c633f0d880b0c907700eb90222286" title="setzt das timeinterrupt-Flag zurück">settimeinterruptflag</a>(<span class="keyword">false</span>);
<a name="l00057"></a>00057          <a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#a73ae93ec883441df2c4bbb4629eab66f">overloadAction</a>=null;
<a name="l00058"></a>00058       }
<a name="l00059"></a>00059       
<a name="l00060"></a>00060       <span class="comment">//das blinken der overload anzeige im Display</span>
<a name="l00061"></a>00061       <span class="keywordflow">if</span>(<a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#a69c13eae27d1b88e1c017de0131d98d7" title="Überlast-Anzeige-Flag Abfrage.">getDisplayOverload</a>()){
<a name="l00062"></a>00062          <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#a98d2003f4c9e4c15a67dd4551a157d9d">liftpanel</a>.<a class="code" href="class_j_lift_panel.html#aa1a1af9d116c063118b4c6d59d22a167">cabineDisplay</a>.<a class="code" href="class_j_display.html#a3bfccf36aec4b599002409760c727b33" title="Diese Methode zeigt einem bestimmten Text im Display.">setText</a>(<span class="stringliteral">&quot;ÜBERLAST&quot;</span>);
<a name="l00063"></a>00063          <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#ab0d9d28ce138d439270d6a98dc13f6c0">display</a>.<a class="code" href="class_j_display.html#a3bfccf36aec4b599002409760c727b33" title="Diese Methode zeigt einem bestimmten Text im Display.">setText</a>(<span class="stringliteral">&quot;ÜBERLAST&quot;</span>);
<a name="l00064"></a>00064       }
<a name="l00065"></a>00065       
<a name="l00066"></a>00066       <span class="comment">//Anzegen der Zeit bis zur Abfahrt</span>
<a name="l00067"></a>00067          <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#a3547f449bf7889bd7d442f906215ca3e">generalpanel</a>.<a class="code" href="class_j_simu_general_panel.html#ae97e893b10fd0ca48fc081df81051fdc" title="Die Methode zum Setzen der Restzeit.">setInSeconds</a>(<a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#a86663c2d019c68bdc97fe0969818d89b" title="gibt die Zeit in sec zurück, die der Fahrstuhl noch wartet, bis er die Türen das nächste mal schließt...">getInterruptTime</a>());
<a name="l00068"></a>00068       
<a name="l00069"></a>00069       <span class="comment">//Status</span>
<a name="l00070"></a>00070       <span class="keywordflow">if</span>(<a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#a9afe9ec0c8de171aab43962528c3ac84" title="gibt an, ob die Kabine sich bewegt">ismov</a>()){
<a name="l00071"></a>00071          <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#a3547f449bf7889bd7d442f906215ca3e">generalpanel</a>.<a class="code" href="class_j_simu_general_panel.html#ae8d63e076662f2f740b558633cfcd893">State</a>.setText(<span class="stringliteral">&quot;Status: fährt&quot;</span>);
<a name="l00072"></a>00072       }<span class="keywordflow">else</span>{
<a name="l00073"></a>00073          <span class="keywordflow">if</span>(<a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#abb9a1d776ddfc735d70e2c278dc3cea9" title="gibt die Anzahl aller Personen, die sich im Fahrstuhl befinden zurück">getAllPeople</a>()==0){
<a name="l00074"></a>00074             <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#a3547f449bf7889bd7d442f906215ca3e">generalpanel</a>.<a class="code" href="class_j_simu_general_panel.html#ae8d63e076662f2f740b558633cfcd893">State</a>.setText(<span class="stringliteral">&quot;Status: frei&quot;</span>);
<a name="l00075"></a>00075          }<span class="keywordflow">else</span>{
<a name="l00076"></a>00076             <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#a3547f449bf7889bd7d442f906215ca3e">generalpanel</a>.<a class="code" href="class_j_simu_general_panel.html#ae8d63e076662f2f740b558633cfcd893">State</a>.setText(<span class="stringliteral">&quot;Status: steht&quot;</span>);
<a name="l00077"></a>00077          }
<a name="l00078"></a>00078          
<a name="l00079"></a>00079       }
<a name="l00080"></a>00080       <span class="keywordtype">boolean</span> hoch[]=<a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#a7b83cf513187aa271a340903e480b155" title="Infos zu den Rufen Hoch.">returnhoch</a>();
<a name="l00081"></a>00081       <span class="keywordtype">boolean</span> runter[]=<a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#a7b7920206aac782eb45debe215a7e42e" title="Infos zu den Rufen Hoch.">returnrunter</a>();
<a name="l00082"></a>00082       <span class="keywordtype">int</span> people[]=<a class="code" href="class_update_request.html#a7dc9c8ff654b4742d93b32e86d363c53">lift</a>.<a class="code" href="class_lift.html#a638cbab6bc9e2b8d105980e1a91ef92f" title="Infos zu den Fahrtwünschen.">returnpeoplerequest</a>();
<a name="l00083"></a>00083       <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0;i&lt;=8; i++){
<a name="l00084"></a>00084          <span class="keywordflow">if</span>(i&lt;8){
<a name="l00085"></a>00085             <span class="keywordflow">if</span> (hoch[i]){
<a name="l00086"></a>00086                <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#ad7a19462c2fff84b4adae72e4dbe3754">levelpanels</a>[8-i].<a class="code" href="class_j_level_panel.html#a27b3686276d26f30b6ce798d13fa178a">Up</a>.setBackground(Color.red);
<a name="l00087"></a>00087             }<span class="keywordflow">else</span>{
<a name="l00088"></a>00088                <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#ad7a19462c2fff84b4adae72e4dbe3754">levelpanels</a>[8-i].<a class="code" href="class_j_level_panel.html#a27b3686276d26f30b6ce798d13fa178a">Up</a>.setBackground(Color.white);
<a name="l00089"></a>00089             }
<a name="l00090"></a>00090          }
<a name="l00091"></a>00091          <span class="keywordflow">if</span>(i&gt;0){
<a name="l00092"></a>00092             <span class="keywordflow">if</span> (runter[i]){
<a name="l00093"></a>00093                <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#ad7a19462c2fff84b4adae72e4dbe3754">levelpanels</a>[8-i].<a class="code" href="class_j_level_panel.html#aa5c944996def45c2c3394b9cdd24e821">Down</a>.setBackground(Color.red);
<a name="l00094"></a>00094             }<span class="keywordflow">else</span>{
<a name="l00095"></a>00095                <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#ad7a19462c2fff84b4adae72e4dbe3754">levelpanels</a>[8-i].<a class="code" href="class_j_level_panel.html#aa5c944996def45c2c3394b9cdd24e821">Down</a>.setBackground(Color.white);
<a name="l00096"></a>00096             }
<a name="l00097"></a>00097          }
<a name="l00098"></a>00098          <span class="keywordflow">if</span>(people[i]==0){
<a name="l00099"></a>00099             <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#a98d2003f4c9e4c15a67dd4551a157d9d">liftpanel</a>.<a class="code" href="class_j_lift_panel.html#a2a2d6efc0f3f59293f43b69b016b96ec">buttons</a>[i].setBackground(Color.white);
<a name="l00100"></a>00100          }<span class="keywordflow">else</span>
<a name="l00101"></a>00101             <a class="code" href="class_update_request.html#a11328ae3c046af5286a9c92fde842b16">viewHouse</a>.<a class="code" href="class_simu_frame.html#a98d2003f4c9e4c15a67dd4551a157d9d">liftpanel</a>.<a class="code" href="class_j_lift_panel.html#a2a2d6efc0f3f59293f43b69b016b96ec">buttons</a>[i].setBackground(Color.red);
<a name="l00102"></a>00102       }
<a name="l00103"></a>00103    }
<a name="l00104"></a>00104 }
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Erzeugt am Fre Jul 6 2012 16:05:56 für LiftSimu von &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
